import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'node:path'
// https://vitejs.dev/config/

export default defineConfig(() => {
  return {
    plugins: [react()],
     resolve: {
      alias: {
        '@': path.resolve(__dirname,'./src'), // 相对路径使用@代替 src
      },
    },                                                             
    server: {
      "host": '0.0.0.0',
      "port": 20000,
      open:false
    }
  }
})